<template>
  <section class="header">
    <div class="headerLeft">
      <div class="iconfont back-icon">&#xe624;</div>
    </div>
    <div class="headerSearch">
      <span class="iconfont">&#xe632;</span>
      输入城市/景点/游玩主题</div>
    <router-link to="/city">
      <div class="headerRight">
        {{this.city}}
        <span class="iconfont arrow-icon">&#xe64a;</span>
      </div>
    </router-link>
  </section>
</template>

<script>
export default {
  name: 'Header',
  props: {
    city: String
  },
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~style/varibles.styl'
.header
  display:flex
  line-height:0.86rem
  color:#fff
  background:$bgColor
  .headerLeft
    width:0.64rem
    float:left
    .back-icon
      text-align:center
      font-size:.4rem
  .headerSearch
    flex:1
    height:.6rem
    line-height:.6rem
    padding-left:.2rem
    color:#ccc
    margin-top:.14rem
    margin-left:.2rem
    background:#fff
    border-radius:.1rem
    text-align:left
  .headerRight
    width:1.24rem
    text-align:center
    float:right
    color:#fff
    .arrow-icon
      font-size:.24rem
</style>
